package cn.how2go.api.entity;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author LGP
 * @since 2020-05-31
 */
public class Person implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "ID", type = IdType.UUID)
    private String id;
    @TableField("Name")
    private String Name;
    @TableField("Gender")
    private Integer Gender;
    @TableField("Birthday")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date Birthday;
    @TableField("CardNo")
    private String CardNo;
    @TableField("Phone")
    private String Phone;
    @TableField("Role")
    private Integer Role;
    @TableField("State")
    private Integer State;
    @TableField("CreateTime")
    private Date CreateTime;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return Name;
    }

    public void setName(String Name) {
        this.Name = Name;
    }

    public Integer getGender() {
        return Gender;
    }

    public void setGender(Integer Gender) {
        this.Gender = Gender;
    }

    public Date getBirthday() {
        return Birthday;
    }

    public void setBirthday(Date Birthday) {
        this.Birthday = Birthday;
    }

    public String getCardNo() {
        return CardNo;
    }

    public void setCardNo(String CardNo) {
        this.CardNo = CardNo;
    }

    public String getPhone() {
        return Phone;
    }

    public void setPhone(String Phone) {
        this.Phone = Phone;
    }

    public Integer getRole() {
        return Role;
    }

    public void setRole(Integer Role) {
        this.Role = Role;
    }

    public Integer getState() {
        return State;
    }

    public void setState(Integer State) {
        this.State = State;
    }

    public Date getCreateTime() {
        return CreateTime;
    }

    public void setCreateTime(Date CreateTime) {
        this.CreateTime = CreateTime;
    }

    @Override
    public String toString() {
        return "Person{" +
        ", id=" + id +
        ", Name=" + Name +
        ", Gender=" + Gender +
        ", Birthday=" + Birthday +
        ", CardNo=" + CardNo +
        ", Phone=" + Phone +
        ", Role=" + Role +
        ", State=" + State +
        ", CreateTime=" + CreateTime +
        "}";
    }
}
